Offers tools to work with the ONE_CHANNEL_PACK enumeration. More...
Static Public Member Functions | |
| static nkMemory::StringView | enumToStringLower (ONE_CHANNEL_PACK value) |
| static ONE_CHANNEL_PACK | stringLowerToEnum (nkMemory::StringView value) |
Offers tools to work with the ONE_CHANNEL_PACK enumeration.
|
static |
Translates an enumeration value into its lowercase string representation :
| Value | Output |
|---|---|
| ONE_CHANNEL_PACK::R | "r" |
| ONE_CHANNEL_PACK::G | "g" |
| ONE_CHANNEL_PACK::B | "b" |
| ONE_CHANNEL_PACK::A | "a" |
| Any other value | "unknown" |
| value | The enumeration value to translate. |
|
static |
Translates a lowercase string into its enumeration value :
| Value | Output |
|---|---|
| "r" | ONE_CHANNEL_PACK::R |
| "g" | ONE_CHANNEL_PACK::G |
| "b" | ONE_CHANNEL_PACK::B |
| "a" / Any other string | ONE_CHANNEL_PACK::A |
| value | The string to translate |